package com.tbit.uqbike.object.pojo;

import com.tbit.common.entity.BaseEntity;
import com.tbit.uqbike.annos.Excel;
import lombok.*;

import java.util.Date;

/**
 * 优惠券套餐对象 coupon_meal
 *
 * @author jing
 * @date 2021-05-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class CouponMeal extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer mealId;

    /**
     * 优惠券id
     */
    @Excel(name = "优惠券id")
    private Integer couponId;

    private String couponName;

    /**
     * 优惠券张数
     */
    @Excel(name = "优惠券张数")
    private Integer couponNum;

    /**
     * 运营区域id
     */
    @Excel(name = "运营区域id")
    private Integer accountId;

    /**
     * 套餐名称
     */
    @Excel(name = "套餐名称")
    private String name;

    /**
     * 原本价格
     */
    @Excel(name = "原本价格")
    private Integer price;

    /**
     * 购买价格
     */
    @Excel(name = "购买价格")
    private Integer realPrice;

    /**
     * 折扣描述
     */
    @Excel(name = "折扣描述")
    private String discount;

    /**
     * 有效天数
     */
    @Excel(name = "有效天数")
    private Integer validDays;

    /**
     * 是否生效（0失效，1生效）
     */
    @Excel(name = "是否生效", readConverterExp = "0=失效，1=生效")
    private Integer enable;

    /**
     * 添加时间
     */
    @Excel(name = "添加时间", width = 30, dateFormat = "yyy-MM-dd HH:mm:ss")
    private Date addTime;

    /**
     * 备注
     */
    private String remark;


}
